SOURCES=dama_interface.c dama_logic.c
LIBS=-lncurses -lform
CC=clang
CFLAGS=-g -Weverything
all:
	$(CC) $(CFLAGS) -o dama_client dama_client.c $(SOURCES) $(LIBS)
	$(CC) $(CFLAGS) -o dama_server dama_server.c server_network.c $(SOURCES) $(LIBS)
       
clean:
	rm dama_client
	rm dama_server
	rm test_logic

server:
	$(CC) $(CFLAGS) -o dama_server dama_server.c $(SOURCES) $(LIBS)

client:
	$(CC) $(CFLAGS) -o dama_client dama_client.c $(SOURCES) $(LIBS)

test:
	$(CC) $(CFLAGS) -o test_logic TEST_logic.c